package domain

import (
	"gorm.io/gorm"
	"time"
)

type PlatForm struct {
	gorm.Model
	ID          int64     `json:"id"`
	Name        string    `json:"name" gorm:"type:varchar(255);not null;" `
	AccessKey   *string   `json:"access_key" gorm:"type:varchar(255)" `
	SecureKey   *string   `json:"secure_key" gorm:"type:varchar(255)"`
	ApiRoot     *string   `json:"api_root" gorm:"type:varchar(255)"`
	Type        int32     `json:"type" gorm:"comment:'0->normal,1->oauth'"`
	Description *string   `json:"description"`
	CreatedAt   time.Time `json:"created_at" `
	UpdatedAt   time.Time `json:"updated_at" `
}
type PlatFormDTO struct {
	ID          int64     `json:"id"`
	Name        string    `json:"name" gorm:"type:varchar(255);not null;" `
	AccessKey   *string   `json:"access_key" gorm:"type:varchar(255)" `
	SecureKey   *string   `json:"secure_key" gorm:"type:varchar(255)"`
	ApiRoot     *string   `json:"api_root" gorm:"type:varchar(255)"`
	Type        int32     `json:"type" gorm:"comment:'0->normal,1->oauth'"`
	Description *string   `json:"description"`
	CreatedAt   time.Time `json:"created_at" `
	UpdatedAt   time.Time `json:"updated_at" `
}
